<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
       <record id="reduction_adjustment_form" model="ir.ui.view">
			<field name="name">reduction_adjustment_form</field>
			<field name="model">param.create.reduction.analytic</field>
			<field name="arch" type="xml">
				<form string="Create Reduction Adjustment">
					
					<separator string="Generated Materials Quantity"/>
					<group>
						<field name="int_type_id" domain="[('type','=','reduction')]"/>
						<field name="inventory_date"/>
					</group>
						<notebook colspan="4">
							<page string="Shipyard"> 
								<group>  
									<field name="ship_red_line_ids" colspan="4" nolabel="1" height="140">
				                        <tree string="Shipyard Generated Lines" create="false" editable="bottom">
				                           	<field name="product_id"/>
				                           	<field name="can_process_qty"/> 
				                           	<field name="product_qty" on_change="onchange_process_qty(product_qty, can_process_qty)" />
				                        </tree>
			                         </field>  
		                        </group> 
		                     </page>
		                    <page string="Mechanical">    
								<group>  
									<field name="mech_red_line_ids" colspan="4" nolabel="1" height="140">
				                        <tree string="Mechanical Generated Lines" create="false" editable="bottom">
				                           	<field name="product_id"/>
				                           	<field name="can_process_qty"/>
				                           	<field name="product_qty" on_change="onchange_process_qty(product_qty, can_process_qty)"/>   
				                        </tree>
			                         </field>
			                    </group>        
		                     </page>
		                     <page string="Electrical">    
								<group>  
									<field name="elec_red_line_ids" colspan="4" nolabel="1" height="140">
				                        <tree string="Electrical Generated Lines" create="false" editable="bottom">
				                           	<field name="product_id"/>
				                           	<field name="can_process_qty"/>
				                           	<field name="product_qty" on_change="onchange_process_qty(product_qty, can_process_qty)"/>
				                        </tree>
			                         </field>  
		                     	</group>     
		                     </page>
		                      <page string="Welding &amp; Fabrication">    
								<group> 
									<field name="weld_red_line_ids" colspan="4" nolabel="1" height="140">
				                        <tree string="Welding Generated Lines" create="false" editable="bottom">
				                           	<field name="product_id"/>
				                           	<field name="can_process_qty"/>
				                           	<field name="product_qty" on_change="onchange_process_qty(product_qty, can_process_qty)"/>
				                        </tree>
			                         </field>  
			                     </group>     
		                     </page>
		                      <page string="Interior">    
								<group> 
									<field name="int_red_line_ids" colspan="4" nolabel="1" height="140">
				                        <tree string="Interior Generated Lines" create="false" editable="bottom">
				                           	<field name="product_id"/>
				                           	<field name="can_process_qty"/>
				                           	<field name="product_qty" on_change="onchange_process_qty(product_qty, can_process_qty)"/>
				                        </tree>
			                         </field>  
		                    	</group>      
		                     </page>
		                      <page string="Design">    
								<group> 
									<field name="desg_red_line_ids" colspan="4" nolabel="1" height="140">
				                        <tree string="Design Generated Lines" create="false" editable="bottom">
				                           	<field name="product_id"/>
				                           	<field name="can_process_qty"/>
				                           	<field name="product_qty" on_change="onchange_process_qty(product_qty, can_process_qty)"/>
				                        </tree>
			                         </field>  
		                     	</group> 
		                     </page>
		                     <page string="Other Dept1">    
								<group> 
									<field name="dept1_red_line_ids" colspan="4" nolabel="1" height="140">
				                        <tree string="Department1 Generated Lines" create="false" editable="bottom">
				                           	<field name="product_id"/>
				                           	<field name="can_process_qty"/>
				                           	<field name="product_qty" on_change="onchange_process_qty(product_qty, can_process_qty)"/>
				                        </tree>
			                         </field>  
		                     	</group> 
		                     </page>
		                     <page string="Other Dept2">    
								<group> 
									<field name="dept2_red_line_ids" colspan="4" nolabel="1" height="140">
				                        <tree string="Department2 Generated Lines" create="false" editable="bottom">
				                           	<field name="product_id"/>
				                           	<field name="can_process_qty"/>
				                           	<field name="product_qty" on_change="onchange_process_qty(product_qty, can_process_qty)"/>
				                        </tree>
			                         </field>  
		                     	</group> 
		                     </page>
		                     <page string="Other Dept3">    
								<group> 
									<field name="dept3_red_line_ids" colspan="4" nolabel="1" height="140">
				                        <tree string="Department3 Generated Lines" create="false" editable="bottom">
				                           	<field name="product_id"/>
				                           	<field name="can_process_qty"/>
				                           	<field name="product_qty" on_change="onchange_process_qty(product_qty, can_process_qty)"/>
				                        </tree>
			                         </field>  
		                     	</group> 
		                     </page>
		                </notebook>     
                    <footer>
	                    <button name="analytic_reduction_create_line" string="Process Adjustment Quantity" type="object" default_focus="1" class="oe_highlight"/>
	                    or 
	                    <button string="Cancel" class="oe_link" special="cancel"/>
	                </footer>   
					
                </form>
			</field>
		</record>

		<record id="act_reduction_adjustment" model="ir.actions.act_window">
			<field name="name">Create Reduction Adjustment</field>
			<field name="type">ir.actions.act_window</field>
			<field name="res_model">param.create.reduction.analytic</field>
			<field name="view_type">form</field>
			<field name="view_mode">form</field>
			<field name="view_id" ref="reduction_adjustment_form"/>
			<field name="target">new</field>
			<field name="multi">True</field>
		</record>
        
        
    </data>
</openerp>
